package com.rajaev.dtu.tractor.app.service;

import com.github.pagehelper.PageInfo;
import com.rajaev.dtu.tractor.domain.vo.CustomerVo;
import com.rajaev.dtu.tractor.infrastructure.base.errors.BusinessException;
import com.rajaev.dtu.tractor.interfaces.dto.CustomerWithProjectTeamVo;


import java.util.List;

public interface CustomerService {

    void save(CustomerVo customerVo, Integer userId) throws BusinessException;

    void updateCustomer(CustomerVo customerVo) throws BusinessException;

    void deleteCustomer(Integer customerId) throws BusinessException;

    PageInfo<CustomerVo> pageQueryCustomer(Integer pageSize,Integer pageNo);

    /**
     * 根据用户id，查询当前用户管理的客户信息
     * @param userId
     * @return
     */
    List<CustomerWithProjectTeamVo> selectCustomerVosByUserId(Integer userId);

    /**
     * 模糊查询客户
     * @param customerName
     * @return
     */
    List<CustomerVo> selectCustomerVosByName(String customerName);



}
